﻿<UserControl x:Class="CDoDNSessionScheduler.Session" 
             xmlns="http://schemas.microsoft.com/client/2007" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             Width="75" Height="75" Cursor="Hand"             
             >
  <UserControl.Resources>
		<Storyboard x:Name="GetBig">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.75" Value="3"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.75" Value="3"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.75" Value="170.5"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.75" Value="81"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="SessionTitle" Storyboard.TargetProperty="(TextBlock.FontSize)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="11"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.75" Value="6"/>
			</DoubleAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames Storyboard.TargetName="path" Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[0].(LineSegment.Point)" BeginTime="00:00:00">
				<SplinePointKeyFrame KeyTime="00:00:00" Value="2.4795446395874,73.7431564331055"/>
				<SplinePointKeyFrame KeyTime="00:00:00.75" Value="99.9134902954102,228.652496337891"/>
			</PointAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames Storyboard.TargetName="path" Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[1].(LineSegment.Point)" BeginTime="00:00:00">
				<SplinePointKeyFrame KeyTime="00:00:00" Value="71.649055480957,1.56723582744598"/>
				<SplinePointKeyFrame KeyTime="00:00:00.75" Value="312.523468017578,7.83137845993042"/>
			</PointAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Name="GetSmall">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="3"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="1"/>				
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" BeginTime="00:00:00">				
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="3"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="147.5"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="73"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="SessionTitle" Storyboard.TargetProperty="(TextBlock.FontSize)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="6"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="11"/>
			</DoubleAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames Storyboard.TargetName="path" Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[0].(LineSegment.Point)" BeginTime="00:00:00">
				<SplinePointKeyFrame KeyTime="00:00:00" Value="92.2189025878906,207.692352294922"/>
				<SplinePointKeyFrame KeyTime="00:00:00.5" Value="2.4795446395874,73.7431564331055"/>
			</PointAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames Storyboard.TargetName="path" Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[1].(LineSegment.Point)" BeginTime="00:00:00">
				<SplinePointKeyFrame KeyTime="00:00:00" Value="273.344268798828,12.0830116271973"/>
				<SplinePointKeyFrame KeyTime="00:00:00.5" Value="71.649055480957,1.56723582744598"/>
			</PointAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
    <Canvas x:Name="LayoutRoot" MouseEnter="Session_MouseEnter" 
             MouseLeftButtonDown="Session_MouseLeftButtonDown" 
             MouseLeave="Session_MouseLeave">
    	<Rectangle Height="75" Width="75" Fill="#FFF2C5C5" Stroke="#FF000000" RadiusX="3" RadiusY="3" x:Name="SessionBack_Small"/>
        <TextBlock Height="75" Width="75" Text="The Title of the Session" TextWrapping="Wrap" FontSize="11" FontFamily="Verdana" x:Name="SessionTitle_small" Margin="2,2,2,0">
            <TextBlock.Clip>
                <RectangleGeometry Rect="0,0,75,65" />
            </TextBlock.Clip>
        </TextBlock>
        <Path Height="229.152" Width="313.023" Canvas.Left="-0.5" Canvas.Top="-0.5" Stretch="None" Stroke="#FF000000" x:Name="path" Opacity="0.4">
    		<Path.Fill>
    			<LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
    				<GradientStop Color="#FFFFFFFF" Offset="0"/>
    				<GradientStop Color="#FFFFFFFF" Offset="1"/>
    				<GradientStop Color="#FF6E6E6E" Offset="0.531"/>
    			</LinearGradientBrush>
    		</Path.Fill>
    		<Path.Data>
    			<PathGeometry>
    				<PathFigure StartPoint="1.64499998092651,73.4300003051758">
    					<LineSegment Point="1.4795446395874,73.7431564331055"/>
    					<LineSegment Point="1.4795446395874,73.7431564331055"/>
    					<LineSegment Point="71.5815658569336,1.26706719398499"/>
    					<LineSegment Point="1.60000002384186,1.26706719398499"/>
    				</PathFigure>
    			</PathGeometry>
    		</Path.Data>
    	</Path>
    	<Canvas Height="75" Width="75" x:Name="canvas" RenderTransformOrigin="0.5,0.5">
    	    <Canvas.Clip>
    	        <RectangleGeometry Rect="0,0,75,75"></RectangleGeometry>
    	    </Canvas.Clip>
    		<Canvas.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform/>
    				<SkewTransform/>
    				<RotateTransform/>
    				<TranslateTransform/>
    			</TransformGroup>
    		</Canvas.RenderTransform>
    		<Rectangle Height="75" Width="75" Fill="#FFF2C5C5" Stroke="#FF000000" StrokeThickness="0.5" RadiusX="3" RadiusY="3" x:Name="SessionBack" RenderTransformOrigin="0.5,0.5">
    			<Rectangle.RenderTransform>
    				<TransformGroup>
    					<ScaleTransform/>
    					<SkewTransform/>
    					<RotateTransform/>
    					<TranslateTransform/>
    				</TransformGroup>
    			</Rectangle.RenderTransform>
    		</Rectangle>
    		<Canvas Height="75" Width="75" x:Name="SelectedBox" Visibility="Collapsed">
    			<Rectangle Height="75" Width="75" RadiusX="3" RadiusY="3" Stroke="#FF000000">
    				<Rectangle.Fill>
    					<LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
    						<GradientStop Color="#00FFFFFF"/>
    						<GradientStop Color="#00FFFFFF" Offset="1"/>
    						<GradientStop Color="#A5FFFFFF" Offset="0.6"/>
    					</LinearGradientBrush>
    				</Rectangle.Fill>
    			</Rectangle>
    			<TextBlock Height="20" Width="78.9" Text="Selected" TextWrapping="Wrap" Foreground="#FF242424" RenderTransformOrigin="0.5,0.5" Canvas.Left="-2.9" Canvas.Top="28.6" FontFamily="Verdana" FontSize="16" FontWeight="Bold">
    				<TextBlock.RenderTransform>
    					<TransformGroup>
    						<ScaleTransform/>
    						<SkewTransform/>
    						<RotateTransform Angle="-41.368"/>
    						<TranslateTransform/>
    					</TransformGroup>
    				</TextBlock.RenderTransform>
    			</TextBlock>
    		</Canvas>
    		<StackPanel Height="75" Width="75">
    			<TextBlock Height="Auto" Width="Auto" Text="The Title of the Session" TextWrapping="Wrap" FontSize="11" FontFamily="Verdana" x:Name="SessionTitle" Margin="2,2,2,0"/>
    			<TextBlock Height="Auto" Width="Auto" Text="Presenter Name" TextWrapping="Wrap" FontSize="5" FontWeight="Normal" FontFamily="Verdana" x:Name="SessionPresenterName" Margin="2,0,2,0" Foreground="#FF3A3A3A"/>
    			<TextBlock Height="Auto" Width="Auto" Text="Session Description" TextWrapping="Wrap" FontFamily="Verdana" FontSize="4" Margin="2,0,2,0" x:Name="SessionDescription" Foreground="#FF3A3A3A"/>
    		</StackPanel>
    	</Canvas>
    </Canvas>
</UserControl>
